import request from '@/utils/request'

// 查询简历主体列表
export function listResumes(query) {
  return request({
    url: '/resume/resumes/list',
    method: 'get',
    params: query
  })
}

// 查询简历主体详细
export function getResumes(id) {
  return request({
    url: '/resume/resumes/' + id,
    method: 'get'
  })
}

// 新增简历主体
export function addResumes(data) {
  return request({
    url: '/resume/resumes',
    method: 'post',
    data: data
  })
}

// 修改简历主体
export function updateResumes(data) {
  return request({
    url: '/resume/resumes',
    method: 'put',
    data: data
  })
}

// 删除简历主体
export function delResumes(id) {
  return request({
    url: '/resume/resumes/' + id,
    method: 'delete'
  })
}
